# Dreams have to come true after all
from flask import Blueprint
from flask_restful import Api

from comment.utils.output import output_json

user_bp = Blueprint('users', __name__, url_prefix='/user')
user_api = Api(user_bp)  # 创建蓝图中的资源Api
## 替代装饰器的写法
user_api.representation('application/json')(output_json)
from Financial.resource.user.user_resource import *

user_api.add_resource(RegisterUser, '/register', endpoint='register')
user_api.add_resource(SmsCode, '/sms', endpoint='sms')
user_api.add_resource(IsEistPhone, 'isExist', endpoint='isExist')
user_api.add_resource(Login, '/login', endpoint='login')
